package com.pcafs.manage.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 社团对象 community
 *
 * @author pcafs
 * @date 2021-05-03
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("community")
public class Community implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 社团id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 所属学院
     */
    private Long deptId;

    /**
     * 社团名字
     */
    private String cname;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 社长id
     */
    private Long presidentId;

    /**
     * 1:处理中，2：通过，3：未通过
     */
    private String cstate;

    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    private String userName;

}
